# coding=utf-8
import sys, os.path
sys.path.append(os.path.dirname(__file__) + '/../../')
import math
from input import *


class Point2d(Input):
    def __init__(self, x, y):
        self.x = x
        self.y = y

    def distance(self, other):
        return math.sqrt((self.x - other.x) * (self.x - other.x) + (self.y - other.y) * (self.y - other.y))
